package org.kms.pojo;

import java.util.List;

public class Manage {
    private int cmId;
    private String cmName;
    private String name;
    private Integer gradeId;
    private Integer cmNumber;
    private Integer glId;
    private Grade grade;
    private List<Child> children;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Child> getChildren() {
        return children;
    }

    public void setChildren(List<Child> children) {
        this.children = children;
    }

    public Grade getGrade() {
        return grade;
    }

    public void setGrade(Grade grade) {
        this.grade = grade;
    }

    public int getCmId() {
        return cmId;
    }

    public void setCmId(int cmId) {
        this.cmId = cmId;
    }

    public String getCmName() {
        return cmName;
    }

    public void setCmName(String cmName) {
        this.cmName = cmName;
    }

    public Integer getGradeId() {
        return gradeId;
    }

    public void setGradeId(Integer gradeId) {
        this.gradeId = gradeId;
    }

    public Integer getCmNumber() {
        return cmNumber;
    }

    public void setCmNumber(Integer cmNumber) {
        this.cmNumber = cmNumber;
    }

    public Integer getGlId() {
        return glId;
    }

    public void setGlId(Integer glId) {
        this.glId = glId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Manage manage = (Manage) o;

        if (cmId != manage.cmId) return false;
        if (cmName != null ? !cmName.equals(manage.cmName) : manage.cmName != null) return false;
        if (gradeId != null ? !gradeId.equals(manage.gradeId) : manage.gradeId != null) return false;
        if (cmNumber != null ? !cmNumber.equals(manage.cmNumber) : manage.cmNumber != null) return false;
        if (glId != null ? !glId.equals(manage.glId) : manage.glId != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = cmId;
        result = 31 * result + (cmName != null ? cmName.hashCode() : 0);
        result = 31 * result + (gradeId != null ? gradeId.hashCode() : 0);
        result = 31 * result + (cmNumber != null ? cmNumber.hashCode() : 0);
        result = 31 * result + (glId != null ? glId.hashCode() : 0);
        return result;
    }
}
